package scauCmiScaffolding.compiled;

import org.eclipse.jet.JET2Context;
import org.eclipse.jet.JET2Template;
import org.eclipse.jet.JET2Writer;
import org.eclipse.jet.taglib.RuntimeTagElement;
import org.eclipse.jet.taglib.TagInfo;

public class _jet_domain implements JET2Template {
    private static final String _jetns_c = "org.eclipse.jet.controlTags"; //$NON-NLS-1$
    private static final String _jetns_java = "org.eclipse.jet.javaTags"; //$NON-NLS-1$

    public _jet_domain() {
        super();
    }

    private static final String NL = System.getProperty("line.separator"); //$NON-NLS-1$
    
    private static final TagInfo _td_c_get_1_9 = new TagInfo("c:get", //$NON-NLS-1$
            1, 9,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$packageName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_java_importsLocation_3_1 = new TagInfo("java:importsLocation", //$NON-NLS-1$
            3, 1,
            new String[] {
                "package", //$NON-NLS-1$
            },
            new String[] {
                "*", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_6_8 = new TagInfo("c:get", //$NON-NLS-1$
            6, 8,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$packageName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_java_format_9_1 = new TagInfo("java:format", //$NON-NLS-1$
            9, 1,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_include_10_1 = new TagInfo("c:include", //$NON-NLS-1$
            10, 1,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/domain/namedQuery.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_12_14 = new TagInfo("c:get", //$NON-NLS-1$
            12, 14,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_java_import_12_76 = new TagInfo("java:import", //$NON-NLS-1$
            12, 76,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_include_14_1 = new TagInfo("c:include", //$NON-NLS-1$
            14, 1,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/domain/field.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_16_1 = new TagInfo("c:include", //$NON-NLS-1$
            16, 1,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/domain/getAndSet.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_18_1 = new TagInfo("c:include", //$NON-NLS-1$
            18, 1,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/domain/copy.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_20_1 = new TagInfo("c:include", //$NON-NLS-1$
            20, 1,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/domain/toString.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_22_1 = new TagInfo("c:include", //$NON-NLS-1$
            22, 1,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/domain/hashCode.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_24_1 = new TagInfo("c:include", //$NON-NLS-1$
            24, 1,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/domain/equals.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_26_1 = new TagInfo("c:include", //$NON-NLS-1$
            26, 1,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/domain/checkPropertyEqual.jet", //$NON-NLS-1$
            } );

    public void generate(final JET2Context context, final JET2Writer __out) {
        JET2Writer out = __out;
        out.write("package ");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_1_9 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_1_9); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_1_9.setRuntimeParent(null);
        _jettag_c_get_1_9.setTagInfo(_td_c_get_1_9);
        _jettag_c_get_1_9.doStart(context, out);
        _jettag_c_get_1_9.doEnd();
        out.write(".domain;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write(NL);         
        RuntimeTagElement _jettag_java_importsLocation_3_1 = context.getTagFactory().createRuntimeTag(_jetns_java, "importsLocation", "java:importsLocation", _td_java_importsLocation_3_1); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_java_importsLocation_3_1.setRuntimeParent(null);
        _jettag_java_importsLocation_3_1.setTagInfo(_td_java_importsLocation_3_1);
        _jettag_java_importsLocation_3_1.doStart(context, out);
        _jettag_java_importsLocation_3_1.doEnd();
        out.write(NL);         
        out.write("import javax.persistence.*;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import javax.xml.bind.annotation.*;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import ");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_6_8 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_6_8); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_6_8.setRuntimeParent(null);
        _jettag_c_get_6_8.setTagInfo(_td_c_get_6_8);
        _jettag_c_get_6_8.doStart(context, out);
        _jettag_c_get_6_8.doEnd();
        out.write(".domain.*;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import java.util.Set;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import com.alibaba.fastjson.annotation.JSONField;");  //$NON-NLS-1$        
        out.write(NL);         
        RuntimeTagElement _jettag_java_format_9_1 = context.getTagFactory().createRuntimeTag(_jetns_java, "format", "java:format", _td_java_format_9_1); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_java_format_9_1.setRuntimeParent(null);
        _jettag_java_format_9_1.setTagInfo(_td_java_format_9_1);
        _jettag_java_format_9_1.doStart(context, out);
        JET2Writer _jettag_java_format_9_1_saved_out = out;
        while (_jettag_java_format_9_1.okToProcessBody()) {
            out = out.newNestedContentWriter();
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_10_1 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_10_1); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_10_1.setRuntimeParent(_jettag_java_format_9_1);
            _jettag_c_include_10_1.setTagInfo(_td_c_include_10_1);
            _jettag_c_include_10_1.doStart(context, out);
            _jettag_c_include_10_1.doEnd();
            out.write(NL);         
            out.write("public class ");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_12_14 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_12_14); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_12_14.setRuntimeParent(_jettag_java_format_9_1);
            _jettag_c_get_12_14.setTagInfo(_td_c_get_12_14);
            _jettag_c_get_12_14.doStart(context, out);
            _jettag_c_get_12_14.doEnd();
            out.write(" implements ");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_java_import_12_76 = context.getTagFactory().createRuntimeTag(_jetns_java, "import", "java:import", _td_java_import_12_76); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_java_import_12_76.setRuntimeParent(_jettag_java_format_9_1);
            _jettag_java_import_12_76.setTagInfo(_td_java_import_12_76);
            _jettag_java_import_12_76.doStart(context, out);
            JET2Writer _jettag_java_import_12_76_saved_out = out;
            while (_jettag_java_import_12_76.okToProcessBody()) {
                out = out.newNestedContentWriter();
                out.write("java.io.Serializable");  //$NON-NLS-1$        
                _jettag_java_import_12_76.handleBodyContent(out);
            }
            out = _jettag_java_import_12_76_saved_out;
            _jettag_java_import_12_76.doEnd();
            out.write(" {");  //$NON-NLS-1$        
            out.write(NL);         
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_14_1 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_14_1); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_14_1.setRuntimeParent(_jettag_java_format_9_1);
            _jettag_c_include_14_1.setTagInfo(_td_c_include_14_1);
            _jettag_c_include_14_1.doStart(context, out);
            _jettag_c_include_14_1.doEnd();
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_16_1 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_16_1); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_16_1.setRuntimeParent(_jettag_java_format_9_1);
            _jettag_c_include_16_1.setTagInfo(_td_c_include_16_1);
            _jettag_c_include_16_1.doStart(context, out);
            _jettag_c_include_16_1.doEnd();
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_18_1 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_18_1); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_18_1.setRuntimeParent(_jettag_java_format_9_1);
            _jettag_c_include_18_1.setTagInfo(_td_c_include_18_1);
            _jettag_c_include_18_1.doStart(context, out);
            _jettag_c_include_18_1.doEnd();
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_20_1 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_20_1); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_20_1.setRuntimeParent(_jettag_java_format_9_1);
            _jettag_c_include_20_1.setTagInfo(_td_c_include_20_1);
            _jettag_c_include_20_1.doStart(context, out);
            _jettag_c_include_20_1.doEnd();
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_22_1 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_22_1); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_22_1.setRuntimeParent(_jettag_java_format_9_1);
            _jettag_c_include_22_1.setTagInfo(_td_c_include_22_1);
            _jettag_c_include_22_1.doStart(context, out);
            _jettag_c_include_22_1.doEnd();
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_24_1 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_24_1); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_24_1.setRuntimeParent(_jettag_java_format_9_1);
            _jettag_c_include_24_1.setTagInfo(_td_c_include_24_1);
            _jettag_c_include_24_1.doStart(context, out);
            _jettag_c_include_24_1.doEnd();
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_26_1 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_26_1); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_26_1.setRuntimeParent(_jettag_java_format_9_1);
            _jettag_c_include_26_1.setTagInfo(_td_c_include_26_1);
            _jettag_c_include_26_1.doStart(context, out);
            _jettag_c_include_26_1.doEnd();
            out.write("}");  //$NON-NLS-1$        
            out.write(NL);         
            _jettag_java_format_9_1.handleBodyContent(out);
        }
        out = _jettag_java_format_9_1_saved_out;
        _jettag_java_format_9_1.doEnd();
    }
}
